package com.platform.study.patterns.creational.simple_factory;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-11-21
 * Time: 上午9:55
 * To change this template use File | Settings | File Templates.
 */
public class OperationFactory {

    public static Operation newInstance(OperationEnum oper) {
        Operation operation = null;
        switch (oper) {
            case add:
                operation = new OperationAdd();
                break;

        }
        return operation;
    }
}
